#include<bits/stdc++.h>
using namespace std;

int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    long long n;
    cin>>n;
    long long d[n],ans=n;
    bool f[n];
    for(int i=0;i<n;i++){
        cin>>d[i];
        f[i]=true;
    }
    for(int i=0;i<n;i++){
        for(int j=0;j<n;j++){
            if(d[i]>d[j]&&f[j]==true){
                ans--;
                f[j]=false;
                break;
            }
        }
    }
    cout<<ans<<endl;
    fclose(stdin);
    fclose(stdout);
    return 0;
}
